Use PEPrintReport to print the specified report to either the printer or to a preview window. This function establishes a Print
short CRPE_API PEPrintReport (
const char FAR *reportFilePath,
BOOL toDefaultPrinter,
BOOL toWindow,
const char FAR *title,
int left,
int top,
int width,
int height,
DWORD style,
HWND parentWindow );
Specifies a pointer to the NULL | |
Specifies whether or not the report is to be sent to the default printer. | |
Specifies whether or not the report is to be displayed in the preview window. | |
Specifies a pointer to the NULL | |
Specifies the x coordinate of the upper left hand corner of the preview window, in pixels. | |
Specifies the y coordinate of the upper left hand corner of the preview window, in pixels. | |
Specifies the style of the window being created. Style settings can be combined using the bitwise "OR" operator. Select your style from the list that appears with PEOutputToWindow. | |
Specifies the handle of the parent window if the preview window is a child of that window. |
Declare Function PEPrintReport Lib "crpe32.dll" (ByVal RptName As String, ByVal Printer As Integer, ByVal Window As Integer, ByVal Title As String, ByVal Lft As Long, ByVal Top As Long, ByVal Wdth As Long, ByVal Height As Long, ByVal Style As Long, ByVal PWindow As Long) As Integer
function PEPrintReport (
reportFilePath: PChar;
toDefaultPrinter: Bool;
toWindow: Bool;
title: PChar;
left: integer;
top: integer;
width: integer;
height: integer;
style: longint;
parentWindow: HWnd
): Smallint stdcall;
EXTERN CWORD PEPrintReport (CSTRING, CLOGICAL, CLOGICAL, CSTRING, CWORD, CWORD, CWORD, CWORD, CLONG, CHANDLE) CRPE.DLL
Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |